package cn.le.dao;

import cn.le.beans.vo.CrawlerHomeVo;
import cn.le.entity.CrawlerHome;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
import java.util.Set;

@Mapper
public interface CrawlerHomeMapper {

    void batchInsert(@Param("coll")Collection<CrawlerHome> crawlerHomes);

    void update(@Param("home")CrawlerHome home);

    List<CrawlerHomeVo> find(@Param("param") String param);

    Integer todayNewHome(@Param("beginDate")String beginDate,@Param("endDate")String endDate);

    Set<Long> findHomeIds(@Param("source")String source);

    CrawlerHome getById(@Param("id")Long id);

}
